package com.itheima.strengthen.test01;

public class Managers extends Persons {
    private String subordinate;//下级

    public Managers(String id, String name, String department, String subordinate) {
        super(id, name, department);
        this.subordinate = subordinate;
    }

    public Managers(String id, String name, String department) {
        super(id, name, department);
    }

    public Managers() {
    }

    @Override
    public void displayIdentity() {

        System.out.println(this.getDepartment() + "的：" + this.getName() + "，员工编号：" + this.getId());
        System.out.println("他的职员是" + this.subordinate);
    }
}
